Proper Placement of Derived Classes in the Class Hierarchy
نویسندگان
چکیده
Users may derive new classes by defining views based on the current database contents. Some virtual classes are classified as brothers of existing classes, and others are either superclasses or subclasses of existing base and virtual classes. A base class is defined directly by the user using class definition constructs. A virtual class is classified as a brother of another class if it is derived from the latter class via a selection. To have a homogeneous system, virtual classes must be treated as first-class citizens in an object-oriented model. In this article, we handle reusability maximization by investigating the proper location of a derived class in the hierarchy by adjusting the list of superclasses and the set of subclasses for a given class to increase inheritance instead of duplication. Our aim is to maximize inherited, and minimize locally defined characteristics by adjusting the list of superclasses to include classes that maximize inherited and minimize locally defined characteristics. Depending on the specification of their superclasses and subclasses during query evaluation, virtual classes may be classified into four groups: (1) classes for which both superclasses and subclasses are specified; (2) classes for which only superclasses are specified; (3) classes for which only subclasses are specified; and (4) classes for which neither superclasses nor subclasses are specified. Reusability decreases from the first group to the fourth group. Two algorithms are presented to achieve the target of maximizing reusability when possible.
منابع مشابه
Perceptual complexity of object oriented systems: a student view
ion Class Design Encapsulation, intra class complexity, proper placement of methods and attributes, choice of class protocol. Labels or names of attributes and methods. Number of attributes, etc. Use of global variables, polymorphism, or information hiding. CD.2 number of methods per class CD.6 class vs instance variables what to put in each CD.7 Polymorphism and information hiding CD.10 underl...
متن کاملApplication of Multi Objective HFAPSO algorithm for Simultaneous Placement of DG, Capacitor and Protective Device in Radial Distribution Network
In this paper, simultaneous placement of distributed generation, capacitor bank and protective devices are utilized to improve the efficiency of the distribution network. The objectives of the problem are reduction of active and reactive power losses, improvement of voltage profile and reliability indices and increasing distribution companies’ profit. The combination of firefly algorithm, parti...
متن کاملبررسی شاخص های بهداشت محیط مدارس (فضاهای آموزشی) در روستاهای استان مازندران (1382)
The role of school in educational development of the student is quite abvious to every body. Âim of this research is to study the hygienic environmental conditions of the schools located in mazandaran province. This is a descriptive method done on 102 village schools during two months by health service staff through proper sampling distribution. Ïn 17.6% of the schools under study per capita ...
متن کاملThe Boolean Hierarchy over Level 1/2 of the Straubing-Therien Hierarchy
For some fixed alphabet A with jAj 2, a language L A is in the class L1=2 of the Straubing-Thérien hierarchy if and only if it can be expressed as a finite union of languages A a1A a2A A anA , where ai 2 A and n 0. The class L1 is defined as the boolean closure ofL1=2. It is known that the classesL1=2 andL1 are decidable. We give a membership criterion for the single classes of the boolean hier...
متن کاملHierarchies in Classes of Program Schemes
We begin by proving that the class of problems accepted by the program schemes of NPS is exactly the class of problems defined by the sentences of transitive closure logic (program schemes of NPS are obtained by generalizing basic non-deterministic while-programs whose tests within while instructions are quantifier-free first-order formulae). We then show that our program schemes form a proper ...
متن کامل